import axios from "axios";


export function onLogin(data) {
    return axios.post('/api/login', data);
}

export function onRegister(data) {
    return axios.post('/api/register', data);
}